Optimal. Leaf size=78 \[ \frac{(b d-2 a e) \tanh ^{-1}\left (\frac{b+2 c x^4}{\sqrt{b^2-4 a c}}\right )}{4 a \sqrt{b^2-4 a c}}-\frac{d \log \left (a+b x^4+c x^8\right )}{8 a}+\frac{d \log (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.125543, antiderivative size = 78, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {1474, 800, 634, 618, 206, 628} \[ \frac{(b d-2 a e) \tanh ^{-1}\left (\frac{b+2 c x^4}{\sqrt{b^2-4 a c}}\right )}{4 a \sqrt{b^2-4 a c}}-\frac{d \log \left (a+b x^4+c x^8\right )}{8 a}+\frac{d \log (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1474
Rule 800
Rule 634
Rule 618
Rule 206
Rule 628
Rubi steps
\begin{align*} \int \frac{d+e x^4}{x \left (a+b x^4+c x^8\right )} \, dx &=\frac{1}{4} \operatorname{Subst}\left (\int \frac{d+e x}{x \left (a+b x+c x^2\right )} \, dx,x,x^4\right )\\ &=\frac{1}{4} \operatorname{Subst}\left (\int \left (\frac{d}{a x}+\frac{-b d+a e-c d x}{a \left (a+b x+c x^2\right )}\right ) \, dx,x,x^4\right )\\ &=\frac{d \log (x)}{a}+\frac{\operatorname{Subst}\left (\int \frac{-b d+a e-c d x}{a+b x+c x^2} \, dx,x,x^4\right )}{4 a}\\ &=\frac{d \log (x)}{a}-\frac{d \operatorname{Subst}\left (\int \frac{b+2 c x}{a+b x+c x^2} \, dx,x,x^4\right )}{8 a}+\frac{(-b d+2 a e) \operatorname{Subst}\left (\int \frac{1}{a+b x+c x^2} \, dx,x,x^4\right )}{8 a}\\ &=\frac{d \log (x)}{a}-\frac{d \log \left (a+b x^4+c x^8\right )}{8 a}-\frac{(-b d+2 a e) \operatorname{Subst}\left (\int \frac{1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^4\right )}{4 a}\\ &=\frac{(b d-2 a e) \tanh ^{-1}\left (\frac{b+2 c x^4}{\sqrt{b^2-4 a c}}\right )}{4 a \sqrt{b^2-4 a c}}+\frac{d \log (x)}{a}-\frac{d \log \left (a+b x^4+c x^8\right )}{8 a}\\ \end{align*}
Mathematica [C] time = 0.0339713, size = 80, normalized size = 1.03 \[ \frac{d \log (x)}{a}-\frac{\text{RootSum}\left [\text{$\#$1}^4 b+\text{$\#$1}^8 c+a\& ,\frac{\text{$\#$1}^4 c d \log (x-\text{$\#$1})-a e \log (x-\text{$\#$1})+b d \log (x-\text{$\#$1})}{2 \text{$\#$1}^4 c+b}\& \right ]}{4 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 106, normalized size = 1.4 \begin{align*}{\frac{d\ln \left ( x \right ) }{a}}-{\frac{d\ln \left ( c{x}^{8}+b{x}^{4}+a \right ) }{8\,a}}+{\frac{e}{2}\arctan \left ({(2\,c{x}^{4}+b){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}} \right ){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}}-{\frac{bd}{4\,a}\arctan \left ({(2\,c{x}^{4}+b){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}} \right ){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 4.89877, size = 556, normalized size = 7.13 \begin{align*} \left [-\frac{{\left (b^{2} - 4 \, a c\right )} d \log \left (c x^{8} + b x^{4} + a\right ) - 8 \,{\left (b^{2} - 4 \, a c\right )} d \log \left (x\right ) + \sqrt{b^{2} - 4 \, a c}{\left (b d - 2 \, a e\right )} \log \left (\frac{2 \, c^{2} x^{8} + 2 \, b c x^{4} + b^{2} - 2 \, a c -{\left (2 \, c x^{4} + b\right )} \sqrt{b^{2} - 4 \, a c}}{c x^{8} + b x^{4} + a}\right )}{8 \,{\left (a b^{2} - 4 \, a^{2} c\right )}}, -\frac{{\left (b^{2} - 4 \, a c\right )} d \log \left (c x^{8} + b x^{4} + a\right ) - 8 \,{\left (b^{2} - 4 \, a c\right )} d \log \left (x\right ) - 2 \, \sqrt{-b^{2} + 4 \, a c}{\left (b d - 2 \, a e\right )} \arctan \left (-\frac{{\left (2 \, c x^{4} + b\right )} \sqrt{-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right )}{8 \,{\left (a b^{2} - 4 \, a^{2} c\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 6.59181, size = 105, normalized size = 1.35 \begin{align*} -\frac{d \log \left (c x^{8} + b x^{4} + a\right )}{8 \, a} + \frac{d \log \left (x^{4}\right )}{4 \, a} - \frac{{\left (b d - 2 \, a e\right )} \arctan \left (\frac{2 \, c x^{4} + b}{\sqrt{-b^{2} + 4 \, a c}}\right )}{4 \, \sqrt{-b^{2} + 4 \, a c} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]